NAME := KERNEL

-include menuconfig/config.mk

ifeq ($(WITH_OS), y)
$(NAME)_COMPONENTS := system/kernel/os
else
ifeq ($(PLAT), stm32f10x)
$(NAME)_COMPONENTS := system/platform/stm32f10x
endif
endif

$(NAME)_COMPONENTS += \
	system/kernel/utils \
	system/kernel/driver \
	system/kernel/common \
	system/kernel/appload \
	system/kernel/init \
	system/kernel/memory \
	system/kernel/debug

ifeq ($(CONFIG_FS),y)
$(NAME)_COMPONENTS += system/kernel/fs
endif

ifeq ($(CONFIG_CONSOLE),y)
$(NAME)_COMPONENTS += system/kernel/console
endif

ifeq ($(CONFIG_CONSOLE_SHELL),y)
$(NAME)_COMPONENTS += system/kernel/shell
endif
